//In order to Unicode-compatible.
//Designed by luowei


#pragma once

#ifdef _T
#undef _T
#endif

#ifdef _ARX2007

#include "AdAchar.h"
typedef ACHAR MYCHAR;
#define _T  _ACRX_T

#define STRCPY wcscpy
#define STRNCPY wcsncpy
#define STRLEN wcslen
#define STRNCMP wcsncmp
#define STRCMP wcscmp
#define STRSTR wcsstr
#define STRCAT wcscat

#define ATOI _wtoi
#define ATOL _wtol
#define ATOF(str) wcstod(str, NULL)
#define ITOA _itow

#define SSCANF swscanf
#define SPRINTF swprintf
#define PRINTF wprintf

#define CHDIR _wchdir

#else

typedef char MYCHAR;
#define _T(x) x

#define STRCPY strcpy
#define STRNCPY strncpy
#define STRLEN strlen
#define STRNCMP strncmp
#define STRCMP strcmp
#define STRSTR strstr
#define STRCAT strcat

#define ATOI atoi
#define ATOL atol
#define ATOF(str) atof(str)
#define ITOA _itoa

#define SSCANF sscanf
#define SPRINTF sprintf
#define PRINTF printf

#define CHDIR _chdir

#endif


